<?php


namespace App\Dao;


use App\Model\Region;

class RegionDao extends AbstractDao
{
    public function where(array $where): \Hyperf\Database\Model\Builder
    {
        $builder = Region::query();

        foreach ($where as $field => $value) {
            switch ($field) {
                default:
                    $builder->where($field, $value);
            }
        }

        return $builder;
    }

}